Optimal. Leaf size=142 \[ \frac{2 a \left (a^2+b^2\right ) \cos (c+d x) \sin ^{\frac{b^2}{a^2+b^2}}(c+d x) \, _2F_1\left (\frac{1}{2},\frac{b^2}{2 \left (a^2+b^2\right )};\frac{1}{2} \left (3-\frac{a^2}{a^2+b^2}\right );\sin ^2(c+d x)\right )}{b d \sqrt{\cos ^2(c+d x)}}-\frac{\left (a^2+b^2\right ) \cos (c+d x) \sin ^{-\frac{a^2}{a^2+b^2}}(c+d x)}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.12323, antiderivative size = 142, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 36, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.083, Rules used = {2789, 2643, 3011} \[ \frac{2 a \left (a^2+b^2\right ) \cos (c+d x) \sin ^{\frac{b^2}{a^2+b^2}}(c+d x) \, _2F_1\left (\frac{1}{2},\frac{b^2}{2 \left (a^2+b^2\right )};\frac{1}{2} \left (3-\frac{a^2}{a^2+b^2}\right );\sin ^2(c+d x)\right )}{b d \sqrt{\cos ^2(c+d x)}}-\frac{\left (a^2+b^2\right ) \cos (c+d x) \sin ^{-\frac{a^2}{a^2+b^2}}(c+d x)}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2789
Rule 2643
Rule 3011
Rubi steps
\begin{align*} \int \sin ^{-1-\frac{a^2}{a^2+b^2}}(c+d x) (a+b \sin (c+d x))^2 \, dx &=(2 a b) \int \sin ^{-\frac{a^2}{a^2+b^2}}(c+d x) \, dx+\int \sin ^{-1-\frac{a^2}{a^2+b^2}}(c+d x) \left (a^2+b^2 \sin ^2(c+d x)\right ) \, dx\\ &=-\frac{\left (a^2+b^2\right ) \cos (c+d x) \sin ^{-\frac{a^2}{a^2+b^2}}(c+d x)}{d}+\frac{2 a \left (a^2+b^2\right ) \cos (c+d x) \, _2F_1\left (\frac{1}{2},\frac{b^2}{2 \left (a^2+b^2\right )};\frac{1}{2} \left (3-\frac{a^2}{a^2+b^2}\right );\sin ^2(c+d x)\right ) \sin ^{\frac{b^2}{a^2+b^2}}(c+d x)}{b d \sqrt{\cos ^2(c+d x)}}\\ \end{align*}
Mathematica [A] time = 0.310594, size = 188, normalized size = 1.32 \[ -\frac{\cos (c+d x) \sin ^{-\frac{a^2}{a^2+b^2}}(c+d x) \sin ^2(c+d x)^{-\frac{b^2}{2 \left (a^2+b^2\right )}} \left (\sqrt{\sin ^2(c+d x)} \left (a^2 \, _2F_1\left (\frac{1}{2},\frac{a^2}{2 \left (a^2+b^2\right )}+1;\frac{3}{2};\cos ^2(c+d x)\right )+b^2 \, _2F_1\left (\frac{1}{2},\frac{a^2}{2 \left (a^2+b^2\right )};\frac{3}{2};\cos ^2(c+d x)\right )\right )+2 a b \sin (c+d x) \, _2F_1\left (\frac{1}{2},\frac{1}{2} \left (\frac{a^2}{a^2+b^2}+1\right );\frac{3}{2};\cos ^2(c+d x)\right )\right )}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 5.474, size = 0, normalized size = 0. \begin{align*} \int \left ( \sin \left ( dx+c \right ) \right ) ^{-1-{\frac{{a}^{2}}{{a}^{2}+{b}^{2}}}} \left ( a+b\sin \left ( dx+c \right ) \right ) ^{2}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (b \sin \left (d x + c\right ) + a\right )}^{2} \sin \left (d x + c\right )^{-\frac{a^{2}}{a^{2} + b^{2}} - 1}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (-{\left (b^{2} \cos \left (d x + c\right )^{2} - 2 \, a b \sin \left (d x + c\right ) - a^{2} - b^{2}\right )} \sin \left (d x + c\right )^{-\frac{2 \, a^{2} + b^{2}}{a^{2} + b^{2}}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (b \sin \left (d x + c\right ) + a\right )}^{2} \sin \left (d x + c\right )^{-\frac{a^{2}}{a^{2} + b^{2}} - 1}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]